<!DOCTYPE html>
<html lang="en" >
<head>
    <title>中华爱情网-扫码抽奖</title>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/favicon.png" />
    <style type="text/css">
    body{
      background:url("/surprice_public/bg.png");
      color: #fff;
    }
    p{text-align: center;}
    #get_box{
      position: relative;
    }
    #msg_box{
      width: 80%;
      padding: 5%;
      margin: 50px auto;
      background-color: #ff9191;
      border: 4px solid #ff6c6c;
      border-radius: 5px;
    }
    </style>
</head>
<body>
  
  <?php if(isset($data)):?>

  <div id="get_box">
    <img src="/surprice_public/get.png" style="width:100%;">
    <p style="position:absolute;top:46%;width:100%;font-size:24px;font-weight:700;"><?=$data->subject?></p>
    <p style="position:absolute;top:76%;width:100%;font-size:20px;font-weight:600;">兑换码：<?=$data->verify_code?></p>
  </div>
  <div id="msg_box">
      <img src="<?=$data->img_dir?>" style="width:100%;"/>
      <?=$data->content?>
  </div>

  <?php else:?>
    <?php if(!$error):?>
    <div id="get_box">
      <img src="/surprice_public/none.png" style="width:100%;">
    </div>
    <?php else:?>
    <div id="msg_box" ><h2><?=$msg?></h2></div>
     <?php endif?>
  <?php endif?>
</body>
 
</html>